package com.yourname.xhs.view;

import com.yourname.xhs.controller.UserControllerImpl;
import com.yourname.xhs.entity.User;

import java.util.InputMismatchException;
import java.util.Scanner;

public class MenuPage {


    public void main() throws Exception {
        Scanner sc=new Scanner(System.in);
       UserControllerImpl usl=new UserControllerImpl();
                System.out.println("-----------------------");
                System.out.println("1、登录");
                System.out.println("2、注册");
                System.out.println("0、退出");
                System.out.println("-----------------------");
                System.out.println("请输入命令：");

                usl.Menu();//与Controller交互

        }


        }



